import org.softmed.rest.generation.classmanager.ClassManager;

classe = ClassManager.forName(type);

if(classe == null)
	throw new SimpleException("Invalid class type.");